package de.koller.caldera.engine.planet;

import de.koller.aframe.gl.ATexture;
import de.koller.caldera.CRoot;
import de.koller.oceanFramework.math.RVec2;

public class Planet {
	
	private CRoot croot;
	public RVec2 position = new RVec2();
	public final float radius;
	
	public Planet( float radius ) {
		position.set( 400, 300 );
		this.radius = radius;
	}
	
	public void addTo( CRoot croot ) {
		croot.engine.planets.add( this );
		this.croot = croot;
	}
	
	public void removeFrom( CRoot croot ) {
		croot.engine.planets.remove( this );
	}
	
	public ATexture getSurfaceTexture() {
		return croot.render.textures.planetsurfaces.plain;
	}
	
	public ATexture getBumpTexture() {
		return croot.render.textures.planetsurfaces.plainBump;
	}
}
